﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace BaseUi
{
    /// <summary>
    /// ChannelView.xaml 的交互逻辑
    /// </summary>
    public partial class ChannelView : UserControl
    {
        public ChannelViewModel _viewModel = null;
        public ChannelView()
        {
            InitializeComponent();
        }
        public ChannelView(ChannelViewModel viewModel1)
        {
            InitializeComponent();
            _viewModel = viewModel1;
            DataContext = _viewModel;

        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
                MessageBox.Show(_viewModel.Mag);
        }
    }
}
